import Vue from 'vue'
import App from './App.vue'
import router from './router'
import "./plugins/vant.js"
import "./assets/font/iconfont.css"
import axios from 'axios'
// 配置请求跟路径
axios.defaults.baseURL="http://www.liulongbin.top:3005/"
// 挂载路由
Vue.prototype.axios=axios
// 过滤器
Vue.filter('formDate',function(time){
  var data=new Date(time)
  const y = data.getFullYear()
  const m = (data.getMonth() + 1 + '').padStart(2, '0')
  const d = (data.getDate() + '').padStart(2, '0')
  return `${y}-${m}-${d}`
})
Vue.config.productionTip = false
new Vue({
  router,
  axios,
  render: h => h(App)
}).$mount('#app')
